From: setian Date: Sun, 24 Feb 2019 21:43:33 +0000 (-0500) Subject: Return the page_id in list=iwbacklinks as an int rather than string X-Git-Tag: 1.34.0-rc.0~2731^2 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=8b8cc02ed76e8b0dc793b81b537f5e7bcb1bdfa8;p=lhc%2Fweb%2Fwiklou.git Return the page_id in list=iwbacklinks as an int rather than string Bug: T216968 Change-Id: I6645c5f1c6e76be3187c24053ed430e99c03bff4 --- diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 7193eebe4b..3037a7239f 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -131,7 +131,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { if ( !is_null( $resultPageSet ) ) { $pages[] = Title::newFromRow( $row ); } else { - $entry = [ 'pageid' => $row->page_id ]; + $entry = [ 'pageid' => (int)$row->page_id ]; $title = Title::makeTitle( $row->page_namespace, $row->page_title ); ApiQueryBase::addTitleInfo( $entry, $title );